package com.xmy.cultivate.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.xmy.cultivate.entity.OrderTransferDetail;
import com.xmy.cultivate.mapper.OrderTransferDetailMapper;
import com.xmy.cultivate.service.IOrderTransferDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author min
 * @since 2022-08-12
 */
@Service
public class OrderTransferDetailServiceImpl extends ServiceImpl<OrderTransferDetailMapper, OrderTransferDetail> implements IOrderTransferDetailService {


    @Autowired
    OrderTransferDetailMapper orderTransferDetailMapper;

    public List<Long> getStudentIdListForWhere(Wrapper wrapper){
        return orderTransferDetailMapper.getStudentIdListForWhere(wrapper);
    }

    public Long getOldOrderId(Long orderId){
        return orderTransferDetailMapper.getOldOrderId(orderId);
    }
}
